package main

import "fmt"

type OrderStatus int

const (
	OrderStatusCreated OrderStatus = iota + 1
	OrderStatusWaitPay
	OrderStatusPaid
	OrderStatusWaitDelivery
	OrderStatusWaitReceive
	OrderStatusComplete
)

func main() {
	fmt.Printf("status: %d \n", OrderStatusCreated)
	fmt.Printf("status: %d \n", OrderStatusWaitPay)
	fmt.Printf("status: %d \n", OrderStatusPaid)
	fmt.Printf("status: %d \n", OrderStatusWaitDelivery)
	fmt.Printf("status: %d \n", OrderStatusWaitReceive)
	fmt.Printf("status: %d \n", OrderStatusComplete)
	printOrderStatus(OrderStatusCreated)
}

func printOrderStatus(status OrderStatus) {
	fmt.Print(status)
}
